﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HY.Entity
{
    public class Region
    {
        /// <summary>
        /// 自增ID，在该表无意义
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 组织编码
        /// </summary>
        public int RegionCode { get; set; }
        /// <summary>
        /// 组织名称
        /// </summary>
        [StringLength(20)]
        public string RegionName { get; set; }
        /// <summary>
        /// 父组织编码
        /// </summary>
        public int ParentCode { get; set; }
    }
}
